package com.aspose.cells;

class zbyj extends zcdb {
   zbyj(int[] var1, zqr var2) throws Exception {
      this.d = 217;
      byte var3 = 19;
      int var7;
      if (var2.b.getName() != null) {
         String var4 = var2.b.getName();
         int var5 = var4.indexOf("!");
         if (var5 != -1) {
            var4 = var4.substring(var5 + 1);
         }

         byte var6;
         if (var2.a != null) {
            var7 = var3 + var2.a.getName().length() * 2 + 4;
            var7 += var4.length() * 2 + 4;
            this.c = new byte[var7];
            this.c[16] = 1;
            this.c[18] = 2;
            var6 = 19;
            int var10 = zcch.a(this.c, var6, var2.a.getName());
            zcch.a(this.c, var10, var4);
         } else {
            var7 = var3 + var4.length() * 2 + 4;
            this.c = new byte[var7];
            this.c[16] = 1;
            var6 = 19;
            zcch.a(this.c, var6, var4);
         }
      } else {
         var7 = var3 + var2.a.getName().length() * 2 + 4;
         var7 += 16;
         this.c = new byte[var7];
         this.c[18] = 2;
         byte var8 = 19;
         int var9 = zcch.a(this.c, var8, var2.a.getName());
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.b.a().StartRow), 0, this.c, var9, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.b.a().EndRow), 0, this.c, var9 + 4, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.b.a().StartColumn), 0, this.c, var9 + 8, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.b.a().EndColumn), 0, this.c, var9 + 12, 4);
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1[0]), 0, this.c, 0, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1[1]), 0, this.c, 4, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1[2]), 0, this.c, 8, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1[3]), 0, this.c, 12, 4);
   }
}
